package com.hw.springcloud.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hw.springcloud.dao.PaymentDao;
import com.hw.springcloud.entities.Payment;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Classname: PaymentServiceIml
 * @Description: 描述
 * @Date: 2021/6/9
 * @Author: huwei
 */
@Service
@AllArgsConstructor
public class PaymentServiceImpl extends ServiceImpl<PaymentDao,Payment> implements PaymentService {


    private final PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
